<?php
include_once('./base/xcx_sqlclass.php');
$mysql=new MMsql();
$userid=$_POST['userid'];
$wkid=$_POST['wkid'];
$sql="select Id from wk_videos where user_id='".$userid."' and wk_id='".$wkid."' and  TO_DAYS(ctime) = TO_DAYS(now())";
$result=$mysql->doSql($sql);
if(count($result)>0){
	echo 1;
}else{
	echo 0;
}

